package com.xb.loan.fund.service.bean;


import com.xb.loan.fund.service.IFundService;
import com.xb.loan.fund.service.constant.FundConst;

import java.io.Serializable;
import java.util.Date;

public class CashEncashVO implements Serializable {
	private static final long serialVersionUID = 7422763679205439960L;

	private String encashId;

	private String accountId;

	private String userId;
	
	private int userLevel;

	private String partnerId;
	
	private String pid;

	private String platId;

	private Integer status;
	
	private String statusReason;

	private double extendFee;

	private double money;

	private String bankCode;
    
    private String bankName;

    private String cardNo;

    private String cardName;

	private String createTime;

	private Date submitTime;

	 private String cashierOrderId;
	
	private Date processTime;

	private String accountPeriod;

	private int accountStatus;

	private Date accountTime;

	private String digitalSign;
	
	private int userType;

	public String getEncashId() {
		return encashId;
	}

	public void setEncashId(String encashId) {
		this.encashId = encashId == null ? null : encashId.trim();
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId == null ? null : accountId.trim();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}

	public String getPartnerId() {
		return partnerId;
	}

	public void setPartnerId(String partnerId) {
		this.partnerId = partnerId == null ? null : partnerId.trim();
	}

	public String getPlatId() {
		return platId;
	}

	public void setPlatId(String platId) {
		this.platId = platId == null ? null : platId.trim();
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public double getExtendFee() {
		return extendFee;
	}

	public void setExtendFee(double extendFee) {
		this.extendFee = extendFee;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Date getProcessTime() {
		return processTime;
	}

	public void setProcessTime(Date processTime) {
		this.processTime = processTime;
	}

	public String getAccountPeriod() {
		return accountPeriod;
	}

	public void setAccountPeriod(String accountPeriod) {
		this.accountPeriod = accountPeriod == null ? null : accountPeriod.trim();
	}

	public Date getAccountTime() {
		return accountTime;
	}

	public void setAccountTime(Date accountTime) {
		this.accountTime = accountTime;
	}

	public String getDigitalSign() {
		return digitalSign;
	}

	public void setDigitalSign(String digitalSign) {
		this.digitalSign = digitalSign == null ? null : digitalSign.trim();
	}
	
	/**
	 * 
	 * 生成秘钥的顺序   money、platId、userId、orderId、sell_name、sell_account
	 */
    public String generateKey(){
        StringBuffer sb = new StringBuffer();
        String strCentor = FundConst.Encrypt_Field_Splitter;
        sb.append(IFundService.df.format(this.getMoney()));
        sb.append(strCentor);
        sb.append(this.getPlatId());
        sb.append(strCentor);
        sb.append(this.getUserId());
        sb.append(strCentor);
        sb.append(this.getEncashId());
        sb.append(strCentor);
        sb.append(this.getCardName());
        sb.append(strCentor);
        sb.append(this.getCardNo());
        return sb.toString();
    }

	public String getCashierOrderId() {
		return cashierOrderId;
	}

	public void setCashierOrderId(String cashierOrderId) {
		this.cashierOrderId = cashierOrderId;
	}

	public String getStatusReason() {
		return statusReason;
	}

	public void setStatusReason(String statusReason) {
		this.statusReason = statusReason;
	}

	public int getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(int accountStatus) {
		this.accountStatus = accountStatus;
	}

	public int getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(int userLevel) {
		this.userLevel = userLevel;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}
    
}